package com.example.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

public class EquipmentOrder {
    private Integer equipmentOrderId;
    private Integer userId;
    private Integer equipmentId;
    private String equipmentName;
    private String equipmentLocation;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp userTime;

    public EquipmentOrder() {

    }

    public EquipmentOrder(Integer equipmentOrderId, Integer userId, Integer equipmentId, String equipmentName, String equipmentLocation, Timestamp userTime) {
        this.equipmentOrderId = equipmentOrderId;
        this.userId = userId;
        this.equipmentId = equipmentId;
        this.equipmentName = equipmentName;
        this.equipmentLocation = equipmentLocation;
        this.userTime = userTime;
    }

    public Integer getEquipmentOrderId() {
        return equipmentOrderId;
    }

    public void setEquipmentOrderId(Integer equipmentOrderId) {
        this.equipmentOrderId = equipmentOrderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentLocation() {
        return equipmentLocation;
    }

    public void setEquipmentLocation(String equipmentLocation) {
        this.equipmentLocation = equipmentLocation;
    }

    public Timestamp getUserTime() {
        return userTime;
    }

    public void setUserTime(Timestamp userTime) {
        this.userTime = userTime;
    }

    @Override
    public String toString() {
        return "EquipmentOrder{" +
                "equipmentOrderId=" + equipmentOrderId +
                ", userId='" + userId + '\'' +
                ", equipmentId='" + equipmentId + '\'' +
                ", equipmentName='" + equipmentName + '\'' +
                ", equipmentLocation='" + equipmentLocation + '\'' +
                ", userTime=" + userTime +
                '}';
    }
}
